package com.xiaomo.gitee.datamanager.entity.menu;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@TableName("data_menu")
@Data
public class DataMenuPO implements Serializable {

    @TableId("id")
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("description")
    private String description;

    @TableField("perm")
    @JSONField(serialize = false)
    @JsonIgnore
    private String perm;

    @TableField("path")
    private String path;

    @TableField("icon")
    private String icon;

    @TableField("parent_id")
    private Integer parentId;

    @Serial
    private static final long serialVersionUID = 1L;
}
